RANDBETWEEN() function returns #NAME? due to not Excel standard function.

Cause:


The RANDBETWEEN() function is not included in the standard set of Excel functions. Instead, it is included in the Analysis ToolPak. Therefore, if the Analysis ToolPak is not enabled, using this function will return the #NAME? error.

Solution:


Enable 'Analysis ToolPak'.